class UrlMappings {

	static mappings = {

		"/file/$id?"(controller: "file", parseRequest: true) {
			action = [GET: "get", DELETE: "delete"]
		}
		"/file"(controller: "file", parseRequest: true) {
			action = [POST: "save"]
		}


		"/$controller/$action?/$id?"{ constraints {
				// apply constraints here
			} }

		"/"(view:"/index")
		"500"(view:'/error')
	}
}
